﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;

namespace FetchDataCompare
{
	[Transaction(TransactionMode.Manual)]
	internal class XmlTestCmd : IExternalCommand
	{
		public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
		{
			"F:\\CategoryList.xml".Trim();
			XMLOperator xmloperator = new XMLOperator();
			xmloperator.GetNeedCheckCategory();
			List<string> needCheckAttribute = xmloperator.GetNeedCheckAttribute("OST_Walls");
			TaskDialog.Show("需要检查的族类别个数", needCheckAttribute.Count.ToString());
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
